package com.xszx.beans;

/**
 * 黎卡芙商城中的商品实体类
 *  编号
 *  名称
 *  规格
 *  价格
 *  图片
 *  简介
 *  地址
 */
public class Goods {
    private Integer id;
    private String goodsName;
    private String goodsUnit;
    private Double goodsPrice;
    private String goodsImg;
    private String goodsInfo;
    private String goodsAddress;
    private Integer num;
    private Integer state;//0礼包 1促销 2轮播

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", goodsName='" + goodsName + '\'' +
                ", goodsUnit='" + goodsUnit + '\'' +
                ", goodsPrice=" + goodsPrice +
                ", goodsImg='" + goodsImg + '\'' +
                ", goodsInfo='" + goodsInfo + '\'' +
                ", goodsAddress='" + goodsAddress + '\'' +
                ", num=" + num +
                ", state=" + state +
                '}';
    }

    public Goods() {
    }

    public Goods(String goodsName, String goodsUnit, Double goodsPrice, String goodsImg, String goodsInfo, String goodsAddress, Integer num, Integer state) {
        this.goodsName = goodsName;
        this.goodsUnit = goodsUnit;
        this.goodsPrice = goodsPrice;
        this.goodsImg = goodsImg;
        this.goodsInfo = goodsInfo;
        this.goodsAddress = goodsAddress;
        this.num = num;
        this.state = state;
    }

    public Goods(Integer id, String goodsName, String goodsUnit, Double goodsPrice, String goodsImg, String goodsInfo, String goodsAddress, Integer num, Integer state) {
        this.id = id;
        this.goodsName = goodsName;
        this.goodsUnit = goodsUnit;
        this.goodsPrice = goodsPrice;
        this.goodsImg = goodsImg;
        this.goodsInfo = goodsInfo;
        this.goodsAddress = goodsAddress;
        this.num = num;
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    public String getGoodsInfo() {
        return goodsInfo;
    }

    public void setGoodsInfo(String goodsInfo) {
        this.goodsInfo = goodsInfo;
    }

    public String getGoodsAddress() {
        return goodsAddress;
    }

    public void setGoodsAddress(String goodsAddress) {
        this.goodsAddress = goodsAddress;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
